const THREE = 3
const FIVE = 5
const SEVEN = 7
// 不包含特殊数字3、5、7
function isNotInclude3and5and7(num: number) {
    const numToString = num.toString()
    return !numToString.includes(THREE.toString()) && !numToString.includes(FIVE.toString()) && !numToString.includes(SEVEN.toString())
}
// 只包含特殊数字3
function isInclude3Only(num: number) {
    const numToString = num.toString()
    return numToString.includes(THREE.toString()) && !numToString.includes(FIVE.toString()) &&
        !numToString.includes(SEVEN.toString())
}
// 只包含特殊数字5
function isInclude5Only(num: number) {
    const numToString = num.toString()
    return !numToString.includes(THREE.toString()) && numToString.includes(FIVE.toString()) &&
        !numToString.includes(SEVEN.toString())
}
// 只包含特殊数字7
function isInclude7Only(num: number) {
    const numToString = num.toString()
    return !numToString.includes(THREE.toString()) && !numToString.includes(FIVE.toString()) && numToString.includes(SEVEN.toString())
}
// 只包含特殊数字3、5
function isInclude3and5Only(num: number) {
    const numToString = num.toString()
    return numToString.includes(THREE.toString()) && numToString.includes(FIVE.toString()) && !numToString.includes(SEVEN.toString())
}
// 只包含特殊数字3、7
function isInclude3and7Only(num: number) {
    const numToString = num.toString()
    return numToString.includes(THREE.toString()) && !numToString.includes(FIVE.toString()) && numToString.includes(SEVEN.toString())
}
// 包含特殊数字5、7
function isInclude5and7Only(num: number) {
    const numToString = num.toString()
    return !numToString.includes(THREE.toString()) && numToString.includes(FIVE.toString()) && numToString.includes(SEVEN.toString())
}
// 包含特殊数字3、5、7
function isInclude3and5and7(num: number) {
    const numToString = num.toString()
    return numToString.includes(THREE.toString()) && numToString.includes(FIVE.toString()) && numToString.includes(SEVEN.toString())
}

export {
    THREE,
    FIVE,
    SEVEN,
    isNotInclude3and5and7,
    isInclude3Only,
    isInclude5Only,
    isInclude7Only,
    isInclude3and5Only,
    isInclude3and7Only,
    isInclude5and7Only,
    isInclude3and5and7
}